﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using System.Data;

namespace logic
{
    public class partner
    {
        public static void insert(PartnerEntity partner)
        {
            Partner.insert(partner);
        }

        public static void update(PartnerEntity partner)
        {
            Partner.update(partner);
        }

        public static void delete(int pid)
        {
            Partner.delete(pid);
        }

        public static PartnerEntity getById(int pid)
        {
            return Partner.getById(pid);
        }

        public static DataSet select(string where, string orderBy, int pageSize, int pageIndex)
        {
            return DbHelper.ExecuteDataSetPageSize("*", "vw_Partner_list", where, "pid", orderBy, pageSize, pageIndex);
        }
    }
}